<script setup lang="ts">
const {waterForm} = defineProps<{
  waterForm: Object;  // 定义采样时间的类型
}>();

</script>

<template>
  <el-card class="box-card">
    <div style="text-align: center;display: flex;align-items: center;justify-content: space-between">
      <h3>SXLPHJ/JL/CX-22-47</h3>
      <h1> 水质 色度分析原始记录(B面)</h1>
      <div></div>
    </div>
    <table class="table">
      <tr>
        <td colspan="8" style="text-align: center">
          <div style="display: flex;align-items: center;justify-content: space-between">
            <div></div>
            <span style="font-size: 18px">标准色列配制</span>
            <div style="display: flex;align-items: center;">
              <span style="width: 140px;">配置日期：</span>
              <el-input style="border: 1px solid #ccc;border-radius: 6px" placeholder="请输入"
                        v-model="waterForm.pzrq"></el-input>
            </div>
          </div>
        </td>
      </tr>
      <tr style="background-color: #f2f2f2">
        <td>标准贮备液批号</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bzcbyph"/>
        </td>
        <td>贮备液有校日期</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bzcbyxrq"/>
        </td>
      </tr>
      <tr>
        <td>标准贮备液色度（度）</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bzcbysd"/>
        </td>
        <td>溶 剂</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.rj"/>
        </td>
      </tr>
      <tr style="background-color: #f2f2f2">
        <td>移取标准贮备体积(mL)</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.yqbzcbtj"/>
        </td>
        <td>定容体积(mL)</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.drtj"/>
        </td>
      </tr>
      <tr>
        <td>标准使用液色(度)</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bzsyysd"/>
        </td>
        <td>标准使用液编号</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bzsyybh"/>
        </td>
      </tr>
      <tr style="background-color: #f2f2f2">
        <td>是否进行色觉检查</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.sjjc"></el-input>
        </td>
        <td>检查日期</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.jcrq"></el-input>
        </td>
      </tr>
      <tr>
        <td>被检查人</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bjcr"></el-input>
        </td>
        <td>检查人</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.jcr"></el-input>
        </td>
      </tr>
      <tr>
        <td>编号</td>
        <td>
          标准加入量（mL）
        </td>
        <td>定容体积(mL)</td>
        <td>
          色列色度(度)
        </td>
      </tr>
      <tr v-for="index in 16" :key="index">
        <td style="text-align: center">{{ index }}</td>
        <td>
          <el-input
              style="width: 100%;border: 1px solid transparent"
              placeholder="请输入"
              v-model="waterForm.bdatas['bzjrl_' + index]">
          </el-input>
        </td>
        <td>
          <el-input
              style="width: 100%;border: 1px solid transparent"
              placeholder="请输入"
              v-model="waterForm.bdatas['drtj_' + index]">
          </el-input>
        </td>
        <td>
          <el-input
              style="width: 100%;border: 1px solid transparent"
              placeholder="请输入"
              v-model="waterForm.bdatas['slsd_' + index]">
          </el-input>
        </td>
      </tr>
    </table>
  </el-card>
</template>

<style scoped lang="scss">

.table {
  width: 100%;
  border-collapse: collapse; /* 表格边框合并 */
  text-align: left; /* 默认左对齐 */
  font-size: 14px; /* 字体大小 */
  color: #606266; /* 默认字体颜色 */
  margin-bottom: 20px;
}

.table th,
.table td {
  border: 1px solid #c2bfbf; /* 表格单元格边框颜色 */
  padding: 10px; /* 单元格内边距 */
}

.table th {
  background: #f5f7fa; /* 表头背景色 */
  font-weight: 600; /* 表头字体加粗 */
  color: #303133; /* 表头字体颜色 */
  text-align: center; /* 表头居中 */
}

.table-td {
  display: flex;
}

::v-deep .el-input__wrapper {
  background-color: transparent;
  box-shadow: none;
}

::v-deep .el-select__wrapper {
  background-color: transparent;
  box-shadow: none;
}

::v-deep .el-input-group__append {
  background-color: transparent;
  box-shadow: none;
}
</style>
